#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
using Cephei.QL.Times;
using Cephei.QL;
namespace Cephei.QL.Instruments.Bonds
{
    /// <summary> 
	/// ! \ingroup instruments
	/// </summary>
    [Guid ("C93AFC17-7850-4f69-AAE1-B02B6B3368C3"),ComVisible(true)]
	public interface IBTP : Cephei.QL.Instruments.Bonds.IFixedRateBond
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// 
		/// </summary>
		 Double AccruedAmount(Microsoft.FSharp.Core.FSharpOption<DateTime> d);
        /// <summary> 
		/// 
		/// </summary>
		 Double Yield(Double cleanPrice, Microsoft.FSharp.Core.FSharpOption<DateTime> settlementDate, Microsoft.FSharp.Core.FSharpOption<Double> accuracy, Microsoft.FSharp.Core.FSharpOption<UInt64> maxEvaluations);
    }   

    /// <summary> 
	/// ! \ingroup instruments Factory
	/// </summary>
   	[ComVisible(true)]
    public interface IBTP_Factory : INativeCollection_Factory<IBTP>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary>
        /// Create a hybrid Vector of IBTP, with event notification of changes
        /// </summary>
        /// <returns>a new Vector&ltIBTP&gt</returns>
        IVector<IBTP> CreateVector();
        /// <summary>
        /// Create a hybrid Vector of ICell of IBTP, with event notification of changes
        /// </summary>
        /// <returns>a new ICell&ltIVector&ltI&ltIBTP&gt&gt&gt</returns>
        ICoCell<IVector<ICoCell<IBTP>>> CreateCellVector();
        IVector<IBTP> CreateVector (IEnumerable<IBTP> source);
        ICoCell<IVector<ICoCell<IBTP>>> CreateCellVector (IEnumerable<ICoCell<IBTP>> source);
        /// <summary> 
		/// 
		/// </summary>
	    IBTP Create (DateTime maturityDate, Double fixedRate, Double redemption, Microsoft.FSharp.Core.FSharpOption<DateTime> startDate, Microsoft.FSharp.Core.FSharpOption<DateTime> issueDate, Cephei.QL.IPricingEngine QL_Pricer);
        /// <summary> 
		/// 
		/// </summary>
	    IBTP Create (DateTime maturityDate, Double fixedRate, Microsoft.FSharp.Core.FSharpOption<DateTime> startDate, Microsoft.FSharp.Core.FSharpOption<DateTime> issueDate, Cephei.QL.IPricingEngine QL_Pricer);
    }
}

